package com.blog.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author：CreateSequence
 * @Date：2020-08-15 20:40
 * @Description：文章分类VO
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ArticleClassificationVO implements Serializable {

    private String classContent;

    private List<ArticleClassificationItemVO> list;

    /**
     * 文章分类VO的内部类，只有文章标题，文章id和发布日期
     */
    @Data
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class ArticleClassificationItemVO implements Serializable{

        private Long articleId;

        private String articleTitle;

        private Date articleDate;

        private String classContent;

        public ArticleClassificationItemVO(Long articleId, String articleTitle, Date articleDate, String classContent) {
            this.articleId = articleId;
            this.articleTitle = articleTitle;
            this.articleDate = articleDate;
            this.classContent = classContent;
        }
    }

}

